﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TRINHTUNGLAM.OOP.EX5
{
    class MODELS
    {
        public string ChuyendoisochanModels(ENTITY objEntity)
        {
            //double sochan=0;
            //double sole= 0;
            string kq = "";
            for (double i = 0; i <= objEntity.nhapso; i++)
            {
                if (i % 2 == 0)
                {
                    kq += ("; " + i);
                    i++;
                }

            }
            return kq;
        }
            public string ChuyendoisoleModels(ENTITY objEntity)
            {
            //double sochan=0;
            //double sole= 0;
            string kqq = "";
            for (double i = 0; i <= objEntity.nhapso; i++)
            {
                if(i%2!=0)
                {
                    kqq += ("; "+i);
                    i++;
                }

            }
            return kqq;
            
            
        }
    }
}
